<?php
	
	/**
	 * Verifies bootstrapper execution to ensure file
	 * necessities, and disabling direct access
	 */
	defined('ENGINE') or exit;
	
	/**
	 * Trims a file path to hide its path prior to the root 
	 * of the application
	 */
	if(!function_exists('engine_trim_path'))
	{
		function engine_trim_path($path, $debug_trim = true)
		{
			if(!$debug_trim && DEBUG)
			{
				return($path);
			}
	
			return(ltrim(str_replace(array('/', '\\', ENGINE_DIR), array(DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, ''), $path), DIRECTORY_SEPARATOR));
		}
	}

?>